<?php
/**
 * @author Oliver Leisalu
 * @package WapBilling
 */
class WapBillingLog extends DomArObject {
	
	/**
	* @orm plugin DomArDateTime(now)
	*/
	public $time;
	/**
	* @orm char(15) index
	* @orm listener beforeInsert beforeInsert
	*/
	public $ip;
	
	/**
	* @orm int(11)
	*/
	public $uid;
	/**
	* @orm longtext
	*/
	public $description;
	/**
	* @orm float(7,2)
	*/
	public $price;
	/**
	* @orm char(3)
	*/
	public $currency;
	/**
	* 0 - sucess, 1 - failure, 2- started
	* @orm int(1)
	*/
	public $status = 2;
	/**
	* @orm char(10) index
	* @orm validator in({elisa,tele2,emt,tele2New})
	*/
	public $operator;
	/**
	 * @orm text
	 */
	public $phoneNr;
	/**
	 * @orm longtext
	 */
	public $request;
	/**
	 * @orm longtext
	 */
	public $result;

	public function beforeInsert() {
		$this->ip = ip();
	}
	
}
?>